import request from '@/utils/request'
//  获取项目列表
export function getProjectList(list) {
    return request({
        url: `/project/project/list`,
        method: 'get',
        params: { list }
    })
}
// 新增项目
export function insertProject(info) {
    return request({
        url: `/project/project/insert`,
        method: 'post',
        data: info
    })
}
// 删除项目
export function deleteProject(id) {
    return request({
        url: `/project/project/delete/${id}`,
        method: 'get',
    })
}
//获取项目类别
export function getProjectType() {
    return request({
        url: `/project/project-type/list`,
        method: 'get',
    })
}
//新增项目类别
export function insertProjectType(data) {
    return request({
        url: `/project/project-type/insert`,
        method: 'post',
        data: data
    })
}
//修改项目类别
export function updateProjectType(data) {
    return request({
        url: `/project/project-type/update`,
        method: 'post',
        data: data
    })
}
//删除项目类别
export function deleteProjectType(data) {
    return request({
        url: `/project/project-type/delete`,
        method: 'post',
        data: data
    })
}
// 获取工程用途
export function getProjectPurpose() {
    return request({
        url: `/project/project-purpose/list`,
        method: 'get',
    })
}
//新增工程用途
export function insertProjectPurpose(data) {
    return request({
        url: `/project/project-purpose/insert`,
        method: 'post',
        data: data
    })
}
// 修改工程用途
export function updateProjectPurpose(data) {
    return request({
        url: `/project/project-purpose/update`,
        method: 'post',
        data: data
    })
}
// 删除工程用途
export function deleteProjectPurpose(data) {
    return request({
        url: `/project/project-purpose/delete`,
        method: 'post',
        data: data
    })
}
// 获取工程状态
export function getProjectStatus() {
    return request({
        url: `/project/project-status/list`,
        method: 'get',
    })
}
// 新增工程状态
export function insertProjectStatus(data) {
    return request({
        url: `/project/project-status/insert`,
        method: 'post',
        data: data
    })
}
// 修改工程状态
export function updateProjectStatus(data) {
    return request({
        url: `/project/project-status/update`,
        method: 'post',
        data: data
    })
}
// 删除工程状态
export function deleteProjectStatus(data) {
    return request({
        url: `/project/project-status/delete`,
        method: 'post',
        data: data
    })
}